package org.robcash.flexlib.formatters
{
	import mx.formatters.DateFormatter;

	public class DateFormatterUTC extends DateFormatter
	{
		public function DateFormatterUTC()
		{
			super();
		}
		
        override public function format(value:Object):String
        {
            var utc:Number = Number(value);
            var date:Date = new Date();
            date.time = utc;
            
            var dateFormatter:DateFormatter = new DateFormatter();
            dateFormatter.formatString = this.formatString;
            return dateFormatter.format(date);
        }
	}
}